home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / bnchutil.arc / SWEEP.DOC < prev    next >
Text File  |  1991-04-30  |  2KB  |  45 lines

  1.  
  2. SWEEP                                  Charles Petzold
  3.  
  4. Purpose:  Causes a command to be successively executed in every subdirectory on
  5.           a hard disk.
  6.  
  7. Format:   SWEEP Command [parameter(s)]
  8.  
  9. Remarks:  SWEEP starts from the current directory.  In order to use SWEEP to
  10.           extend the range of a command to all the subdirectories on a disk,
  11.           use CD (if necessary) to make the root directory your current
  12.           directory.  From the root directory, the command
  13.  
  14.                SWEEP DIR
  15.  
  16.           will display the listings, by subdirectory, of every non-hidden file
  17.           on the disk.  To erase all the .BAK files on a disk you need only get
  18.           into the root directory and issue the command
  19.  
  20.                SWEEP DEL *.BAK
  21.  
  22.           SWEEP itself will not accept parameters other than its command.
  23.           Thus, if you are on drive C: and wish a directory of all files on
  24.           drive D: to be sent to your printer, you must first make drive D: the
  25.           current drive before you issue the command
  26.  
  27.                SWEEP DIR > LPT1
  28.  
  29.           (In this case you would either need a copy of SWEEP.COM on drive D:
  30.           or else drive D: would have to be listed on your PATH.)
  31.  
  32.           SWEEP can execute .BAT file commands (and even non-DOS commands, such
  33.           as LOCATE.COM).  A useful file called CLEAN.BAT might consist of the
  34.           three lines
  35.  
  36.           DEL *.BAK
  37.           DEL *.TMP
  38.           DEL *.OBJ
  39.  
  40.           From the root directory, if you then enter
  41.  
  42.                SWEEP CLEAN
  43.  
  44.           all .BAK, .TMP, and .OBJ files will be erased from the disk.
  45.